package com.gitee.wsl.transform.encode.pinyin.trie.handler

import com.gitee.wsl.transform.encode.pinyin.trie.PayloadEmit

class DefaultPayloadEmitHandler<T> : StatefulPayloadEmitHandler<T> {

     override val emits = ArrayList<PayloadEmit<T>>()

    override fun emit(emit: PayloadEmit<T>): Boolean {
        this.emits.add(emit)
        return true
    }
}
